package com.wechatmall.api.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * </p>
 *
 * @author zpc
 * @since 2025-09-24 02:24:13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "Orders", description = "实体")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID", example = "1", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String id;

    @Schema(description = "订单数", example = "示例值")
    private String orderNo;

    @Schema(description = "用户ID", example = "示例值")
    private String userId;

    @Schema(description = "总数", example = "示例值")
    private String totalAmount;

    @Schema(description = "折扣价", example = "示例值")
    private String discountAmount;

    private String shippingFee;

    private String payAmount;

    @Schema(description = "状态", example = "示例值")
    @TableField("`status`")
    private String status;

    @Schema(description = "付费状态", example = "示例值")
    private String paymentStatus;

    @Schema(description = "付费方式", example = "示例值")
    private String paymentMethod;

    @Schema(description = "交易ID", example = "示例值")
    private String paymentTransactionId;

    @Schema(description = "交易时间", example = "示例值")
    private String paymentTime;

    @Schema(description = "收货人", example = "示例值")
    private String receiverName;

    @Schema(description = "收货人电话", example = "示例值")
    private String receiverPhone;

    @Schema(description = "收货地址", example = "示例值")
    private String receiverAddress;

    @Schema(description = "收货人邮编", example = "示例值")
    private String receiverPostCode;

    private String shippingCompany;

    private String shippingNo;

    private String shippingTime;

    @Schema(description = "发送时间", example = "示例值")
    private String deliveryTime;

    @Schema(description = "订单结束时间", example = "示例值")
    private String finishTime;

    @Schema(description = "备注", example = "示例值")
    private String remark;

    @Schema(description = "使用优惠券ID", example = "示例值")
    private String usedCouponId;

    @Schema(description = "优惠码", example = "示例值")
    private String couponCode;

    private String couponDiscountAmount;

    private String refundAmount;

    private String refundReason;

    private String refundAt;

    @Schema(description = "快递公司", example = "示例值")
    private String expressCompany;

    private String trackingNumber;

    @Schema(description = "创建时间", example = "2024-01-01T12:00:00", accessMode = Schema.AccessMode.READ_ONLY)
    private String createdAt;

    @Schema(description = "更新时间", example = "2024-01-01T12:00:00", accessMode = Schema.AccessMode.READ_ONLY)
    private String updatedAt;
}